#ifndef SIMPLEPIZZAFACTORY_H
#define SIMPLEPIZZAFACTORY_H

#include<iostream>
#include<cstring>
using namespace std;

#define SAFE_DELETE_PTR(ptr) { if(nullptr != ptr) {delete ptr; ptr == nullptr;}}

#include "Pizza.h"
#include "CheesePizza.h"
#include "PepperoniPizza.h"

class PizzaFactory
{
public:
    PizzaFactory();
    ~PizzaFactory();
    Pizza* createPizza(const std::string &type);
public:
    Pizza                 *pizza;
};

#endif // SIMPLEPIZZAFACTORY_H
